package com.algorithm.code.stack;

public interface BaseStack<T> {

    /**
    * @Description: 判断栈空
    * @Param: 
    * @return: 
    * @Author: kukuxiahuni
    * @Date: 2020/1/25
    */
    public boolean isEmpty();

    /**
    * @Description: 弹出栈顶元素 
    * @Param: 
    * @return: 
    * @Author: kukuxiahuni
    * @Date: 2020/1/25
    */
    public T pop();

    /**
    * @Description: 查看栈顶元素，但不删除 
    * @Param: 
    * @return: 
    * @Author: kukuxiahuni
    * @Date: 2020/1/25
    */
    public T peek();

    /**
    * @Description: 向栈顶压入元素
    * @Param: 
    * @return: 
    * @Author: kukuxiahuni
    * @Date: 2020/1/25
    */
    public void push(T value);
}
